package mymatch

import scala.util.Random


object StringMatchDemo {
  def main(args: Array[String]): Unit = {
    val arr= Array("Hadoop", "HBase", "Spark")
    var name = arr(Random.nextInt(arr.length))

    name match {
      case "Hadoop" => println(arr(1))
      case "HBase" => println(arr(2))
      case "Spark" => println(arr(0))
      case _ => println("dummy")
    }
  }
}
